/**
 * 
 */
package com.jie.eclipse.pan.form.item;

import com.jie.eclipse.pan.data.BaseDataEntity;
import com.jie.eclipse.pan.form.support.FormItem;

/**
 * @author yanjie
 *
 */
public class Textarea extends FormItem{
	/**
	 * 
	 */
	public Textarea() {
		this.setNodeName("textarea");
	}
	
	@Override
	public void configItem(BaseDataEntity config,String action){
		super.configItem(config,action);
		if(config ==null)return;
		String strStyle  = "";
		if(!config.isNullOrEmpty("width")){
			strStyle += "width:" + config.gpsv("width")+";";
		}
		if(!config.isNullOrEmpty("height")){
			strStyle += "height:" + config.gpsv("height")+";";
		}
		this.spsnnv("style", strStyle);
	}
}